<meta http-equiv="content-type" content="text/html;charset=utf-8">
<?php
include_once "../inc/config.php";
include_once "../inc/config_db.php";
include_once "../inc/linb.php";
include_once "../inc/template.php";
include_once "../inc/class.page.php";
echo "<title>".$web_name."</title>";
if ($_POST['user']=="")
{
echo "<SCRIPT language=JavaScript>alert('账号名不能为空！');javascript:history.go(-1);</SCRIPT>";
}elseif ($_POST['password']==""){
echo "<SCRIPT language=JavaScript>alert('密码不能为空！');javascript:history.go(-1);</SCRIPT>";
}
$user=uh($_POST['user']);
$password=md5(md5(uh($_POST['password'])));
$strSql="SELECT * FROM tun2_member WHERE user='$user' and password='$password'";
$db->query($strSql);
	if($db->next_record())
		{
			echo "<SCRIPT language=JavaScript>alert('您好，";
			echo $db->Record["name"];
			echo "。您的积分是：";
			echo $db->Record["points"];
			echo "');javascript:history.go(-1);</SCRIPT>";

		}else{
		echo "<SCRIPT language=JavaScript>alert('账号或密码不正确！');javascript:history.go(-1);</SCRIPT>";
		exit();
		}

?>
